package com.hnd.springframerwork.beans.factory.config;

import cn.hutool.core.bean.BeanException;

public interface BeanPostProcessor {
    /**
     * 在bean 对象实例化之前执行此方法
     *
     * @param bean
     * @param beanName
     * @return
     * @throws BeanException
     */
    Object postProcessBeforeInitialization(Object bean, String beanName) throws BeanException;

    /**
     * 在对象实例化之后执行此方法
     * @param ben
     * @param beanName
     * @return
     * @throws BeanException
     */
    Object postProcessAfterInitialization( Object ben ,String beanName) throws BeanException;
}
